package com.ziyun.pop.modules.storeMaterials.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ziyun.pop.modules.purchase.entity.StorePurchaseApplyDetailEntity;
import com.ziyun.pop.modules.purchase.entity.dto.StorePurchaseApplyDto;
import io.renren.common.utils.R;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * @Author ZhaoWei
 * @Date 2018/10/15 18:31
 * @Version V1.0
 */
public interface StorePurchaseApplyDetailService extends IService<StorePurchaseApplyDetailEntity> {

	void saveStoreBFDate(Map<String, Object> map);

	int getStatusByApplyNo(String applyNo);

	List<StorePurchaseApplyDetailEntity> getMaterialByinNo(String inNo);

	List<StorePurchaseApplyDetailEntity> getMaterialByApplyNo(String applyNo);

	R updateDetail(StorePurchaseApplyDto storePurchaseApplyDto);

	BigDecimal getReceiveQuantity(String applyNO,String materialID);

	Integer updateReceiveQuantity(BigDecimal quantityRecive,String applyNO,String materialID);

	BigDecimal getMaterialQuantity(String applyNO,String materialID);

	List<StorePurchaseApplyDetailEntity> getStorePurchaseApplyDetailByApplyNo(String applyNo);

	BigDecimal getTotalMoney(String inNo);









}
